package com.idbk.chargestation.wenxinpay;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.idbk.chargestation.R;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;

public class AppRegister extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		final IWXAPI api = WXAPIFactory.createWXAPI(context, null);

		//将App注册到微信
		api.registerApp(context.getResources().getString(R.string.weixin_app_id));
		
	}
}
